#include <allegro.h>

#define nb 2

typedef struct
{
int x,y;
BITMAP *img_l0;
BITMAP *img_l1;
BITMAP *img_r0;
BITMAP *img_r1;
BITMAP *arret;
int dir; /* 0-right 1-left 2-saut*/
} richard;

void destroy_background(BITMAP * Background);

void destroy_richard(richard *r);

void draw_b(BITMAP *Background, BITMAP*Buffer);

void load_richard (richard *r);

void init_richard(richard *r);

void depl_richard_right(richard *r, BITMAP *Background);

void depl_richard_left(richard *r, BITMAP *Background);

void jump(richard *r, BITMAP *Background);

void arret(richard *r, BITMAP *Background);

void deplacement(richard *r, BITMAP *Background);

void draw(richard r, BITMAP *Buf);

//void fight(richard *r, pirate *p, BITMAP *Background);
